import { createApp } from "vue";
import { createPinia } from "pinia";
import "./style.css";
import App from "./App.vue";
import { createPiniaLogger } from "./plugins/piniaLogger";
import { createPiniaPersist } from "./plugins/piniaPersist";
import router from "./router";

const pinia = createPinia();
// Pinia 通过插件化拓展功能
pinia.use(createPiniaLogger({ user: "orange" }));
pinia.use(createPiniaPersist());

const app = createApp(App);
// Vue3 插件化机制提供特性
app.use(pinia);
app.use(router);

app.mount("#app");
